package main

import "fmt"

//map和sclice
func main() {

	/* 	var a = make([]int, 0)
	   	a[0] = 10
	   	fmt.Println(a) */

	//元素类型为map的切片
	var s1 = make([]map[int]string, 10)
	//没有对内部的map初始化
	s1[0] = make(map[int]string, 1)
	s1[0][10] = "沙河"
	fmt.Println(s1)

	//值为切片类型的map
	var m1 = make(map[string][]int, 10)
	m1["北京"] = []int{10, 20, 30}
	fmt.Println(m1)

}
